package work.mediway.mdm.biz.entity.biz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 配置信息
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/1/26
 */
@ApiModel(value = "配置信息")
@Data
@TableName(value = "SS_Config")
public class SsConfig {

    /**
     * 代码，不传，自动生成
     */
    @TableId(value = "SSC_Code", type = IdType.INPUT)
    @ApiModelProperty(value = "代码(新增时不传,默认生成)")
    @NotBlank(message = "更新配置时,代码不能为空")
    private String sscCode;

    /**
     * 描述
     */
    @TableField(value = "SSC_Desc")
    @ApiModelProperty(value = "描述")
    private String sscDesc;

    /**
     * 值
     */
    @TableField(value = "SSC_Value")
    @ApiModelProperty(value = "值")
    private String sscValue;
}